package com.platform.module.dao.service;

import com.platform.module.dao.entity.TbUserPay;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户充值提现表 服务类
 * </p>
 *
 * @author ZM
 * @since 2025-01-07
 */
public interface TbUserPayService extends IService<TbUserPay> {

    BigDecimal sumImoneyByUserIdAndItypeAndIsSuccessAndCcreateTime(Long userId, Integer itype, Integer isSuccess, LocalDate createTime);

    BigDecimal sumImoneyByUserIdAndItypeAndIsSuccessAndCcreateTimeBetween(Long userId, Integer itype, Integer isSuccess, LocalDateTime cumulativeStartTime, LocalDateTime cumulativeExpiredTime);
}
